import axios from 'axios';
import qs from 'querystring';

export const getMapSiteStatics = params => {
  return axios.get(`/api/static/getMapSiteStatics?${qs.stringify(params)}`);
};

export const getTop10RiskSites = params => {
  return axios.get(`/api/static/getTop10RiskSites?${qs.stringify(params)}`);
};

export const getTopNFingers = params => {
  return axios.get(`/api/static/getTopNFingers?${qs.stringify(params)}`);
};

export const getTop10Vuls = params => {
  return axios.get(`/api/static/getTop10Vuls?${qs.stringify(params)}`);
};

export const getSitesTrends = () => {
  return axios.get('/api/static/getSitesTrends');
};

export const getAssetMapList = params => {
  return axios.get(`/api/static/getAssetMapList?${qs.stringify(params)}`);
};
